from django.conf.urls.defaults import *
from django.contrib.auth.views import password_reset, password_reset_done, password_change, password_change_done
from django.views.generic.simple import direct_to_template

from django.conf import settings


urlpatterns = patterns('',
    (r'^', include('src.ca.urls')),
    (r'^accounts/', include('registration.urls')),
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^accounts/profile/$', 'django.views.generic.simple.redirect_to', {'url': "/about/" } ),
    (r'^$', 'django.views.generic.simple.redirect_to', {'url': "/about/" } ),
)


if settings.DEBUG:
    urlpatterns += patterns('',
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', { 'document_root': settings.SITE_MEDIA , 'show_indexes': False } ),
    )

